package com.example.demo.java8;

import java.util.Date;
import java.util.List;
import java.util.Objects;

/**
 * @author f_bao
 * @create 2018/6/4
 */
public class Person {

    private int id;

    private String name;

    private Date date;

    private List<String> filed;

    public Person(int id) {
        this.id = id;
    }

    public Person() {
    }

    public Person(int id, String name) {
        this.id = id;
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public List<String> getFiled() {
        return filed;
    }

    public void setFiled(List<String> filed) {
        this.filed = filed;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Person{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", date=" + date +
                ", filed=" + filed +
                '}';
    }
}
